import request from '@/utils/request'
/** 快递管理*/
export function listExpressShop(data) {
  return request({
    url: '/ims/express/shop/page', method: 'get', params: data
  })
}


export function addExpressShop(data) {
  return request({
    url: '/ims/express/shop/save', method: 'post', data: data
  })
}

export function updateExpressShop(data) {
  return request({
    url: '/ims/express/shop/edit', method: 'post', data: data
  })
}

export function deleteExpressShop(data) {
  return request({
    url: '/ims/express/shop/delete', method: 'post', data: data
  })
}

/** 快递价格*/

export function listExpressPrice(data) {
  return request({
    url: '/ims/express/price/page', method: 'get', params: data
  })
}

export function addExpressPrice(data) {
  return request({
    url: '/ims/express/price/save', method: 'post', data: data
  })
}

export function updateExpressPrice(data) {
  return request({
    url: '/ims/express/price/edit', method: 'post', data: data
  })
}

export function deleteExpressPrice(data) {
  return request({
    url: '/ims/express/price/delete', method: 'post', data: data
  })
}
/** 发货单*/
export function listSendGood(data) {
  return request({
    url: '/ims/invoice/page', method: 'get', params: data
  })
}
export function getSendGood(data) {
  return request({
    url: '/ims/customer/order/items/'+data, method: 'get'
  })
}
export function okSendGood(data) {
  return request({
    url: '/ims/invoice/express', method: 'post', data: data
  })
}
export function okAllSendGood(data) {
  return request({
    url: '/ims/invoice/batch', method: 'post', data: data
  })
}
export function noSendGood(data) {
  return request({
    url: '/ims/invoice/intercept', method: 'post', data: data
  })
}
export function inSendGood(data) {
  return request({
    url: '/ims/invoice/stored', method: 'post', data: data
  })
}
export function cancelSendGood(data) {
  return request({
    url: '/ims/invoice/cancel', method: 'post', data: data
  })
}
export function repeatSendGood(data) {
  return request({
    url: '/ims/invoice/repeat', method: 'post', data: data
  })
}
export function sendGoodExpress(data) {
  return request({
    url: '/ims/invoice/send', method: 'post', data: data
  })
}
export function splitSendGood(data) {
  return request({
    url: '/ims/invoice/split', method: 'post', data: data
  })
}
